	Ext.BLANK_IMAGE_URL = "../script/ext-2.0.2/resources/images/default/s.gif"; 
	
	var fp = new Ext.FormPanel({
						id:'ext_form',
				        labelWidth: 100, 
				        waitMsg:'正在提交，请稍后...',
				        frame:true,
				        fileUpload: true,
				        bodyStyle:'padding:5px 5px 0',
				        width: "386",
						reader: new Ext.data.JsonReader({
				            root: 'ZANY',
				            totalProperty: "results",
				            fields:["file"]
				        }),
				        items: [{
				        		 layout:'column',
							     layout: 'form',
							     defaultType: 'textfield',
							     items: [
				                		{
											inputType:'file',
											fieldLabel:"EXECL文件",
										    allowBlank:false,						
											height:20,
										    anchor:"95%",
											name:"file"
									    }  
								        ]
				        }]
	    			});
	   			
	var winKey = new Ext.Window({
						id:"ext_win",
        				title: '[EXECL转换工具]',
						width: "400",
						height: "300",
						closeAction:'hide',
						modal:true,
						iconCls: 'add',
						buttons: [{
				            text: '导出',				     
				            handler: function(){  	
				            /*
								var  params='execlToTxt!execlToTxt.action?dateTime='+new Date().getTime();
								window.location.href=params;           
							*/
								if(fp.form.isValid()){
				            		fp.form.submit({
					                    url: 'execlToTxt!execlToTxt.action?dateTime='+new Date().getTime(),
										waitTitle:"EXECL转换中",
					                    waitMsg: '正在提交数据,请稍后... ...',
					                    success: function(form,action){
											window.location.href = "execlToTxt!downloadTxt.action?dateTime="+new Date().getTime()+"&txtName="+action.result.msg;		
											Ext.QuickTips.init(); 
	   										winKey.show();								
										},
										failure:function(form,action){
											Ext.MessageBox.alert('提示信息', 'EXECL转换,请联系系统管理员!'+action.result.msg);
										}
					                });
				            	}else{
				            		ZANY.util.Msg('添加提示','数据不完整！');
				            	}    					            	
				            }
				        }],
						items:[fp]	
					});
					
	Ext.onReady(function(){
		Ext.QuickTips.init(); 
	    winKey.show();
	});
